<script setup>
import { ref } from 'vue';
import { ElSwitch } from 'element-plus'; 

const productView = ref(true);
</script>

<template>
  <div class="container">
    <div class="top">
      <h4>权限设置</h4>
    </div>
    <div class="fliter">
      <!-- 权限 -->
      <div class="permission-item">
        <span class="permission-label">产品查看</span>
        <el-switch v-model="productView" active-text="开启" inactive-text="关闭" />
        <span class="permission-desc">开启后，可指定人员查看产品信息</span>
      </div>
    </div>
    <div>
      <el-select placeholder="添加可查看人员" clearable multiple>
          <el-option label="张三" value="张三" />
          <el-option label="李四" value="李四" />
          <el-option label="王五" value="王五" />
      </el-select>
    </div>
        
  </div>
</template>

<style scoped>
.container {
  background-color: #848080; 
  min-height: 900px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
}

.top {
  background-color: #ffffff;
  min-height: 40px;
  border-bottom: 1px solid #eaeaea;
  margin: 0;
  padding: 8px 16px;
  width: 100%;
  box-sizing: border-box;
}

.top h4 {
  margin: 0;
  color: #ff6600;
}

.fliter {
  background-color: #ffffff;
  min-height: calc(900px - 40px);
  padding: 20px 40px;
  box-sizing: border-box;
}

.permission-item {
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  border: #666;
  align-items: center;
  gap: 12px;
}

.permission-label {
  font-weight: 600;
  width: 80px;
  display: inline-block;
}

.permission-desc {
  color: #666;
  font-size: 14px;
}

.user-list {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}
</style>